import request from '@/utils/request'

export function getAllSettings() {
  return request({
    url: `/api/app/tenant-settings/settings`,
    method: 'get'
  })
}
export function updateAllSettings(data) {
  return request({
    url: `/api/app/tenant-settings/settings`,
    method: 'put',
    data
  })
}
// export function getPointSetting() {
//   return request({
//     url: '/api/services/app/TenantSettings/GetPointSetting',
//     method: 'get'
//   })
// }
// export function updatePointSetting(data) {
//   return request({
//     url: '/api/services/app/TenantSettings/UpdatePointSetting',
//     method: 'put',
//     data
//   })
// }

export function getAboutSetting() {
  return request({
    url: '/api/app/tenant-settings/about-setting',
    method: 'get'
  })
}

export function updateAboutSetting(data) {
  return request({
    url: '/api/app/tenant-settings/about-setting',
    method: 'put',
    data
  })
}

export function getContactSetting() {
  return request({
    url: '/api/app/tenant-settings/contact-setting',
    method: 'get'
  })
}

export function updateContactSetting(data) {
  return request({
    url: '/api/app/tenant-settings/contact-setting',
    method: 'put',
    data
  })
}
